package com.liuhung.ash.resource.service;

import java.util.List;

import org.apache.log4j.Logger;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.liuhung.base.page.BasePage;
import com.liuhung.base.service.BaseService;
import com.liuhung.ash.resource.dao.RegionDao;
import com.liuhung.ash.resource.entity.Region;

/**
 *	@ClassName: RegionService 
 *  @Description: <b>地区服务层</b>
 *  @author 刘  鸿 
 *  @date 2015-10-4 13:40:36
 */ 
@Service("regionService")
@Transactional
public class RegionService extends BaseService<Region> {
	private final static Logger log= Logger.getLogger(RegionService.class);
	
	@Autowired
    private RegionDao<Region> dao;
	public RegionDao<Region> getDao() {
		return dao;
	}
	public List<Region> queryByFId(Object id)
	{
		return dao.queryByFId(id);
	}
	 public Region queryByCode(Object id){
		return dao.queryByCode(id);
	}
}
